//
//  NSString+Extension_NSString.m
//  PHMall
//
//  Created by admin on 2018/1/9.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "NSString+Extension_NSString.h"

@implementation NSString (Extension_NSString)
//删除两个字符中间的字符
- (NSString *)subStringFrom:(NSString *)startString to:(NSString *)endString{
    
    NSRange startRange = [self rangeOfString:startString];
    NSRange endRange = [self rangeOfString:endString];
    NSRange range = NSMakeRange(startRange.location + startRange.length, endRange.location - startRange.location - startRange.length);
    NSString *rangeStr =[self substringWithRange:range];
    NSString *newStr=[self stringByReplacingOccurrencesOfString:rangeStr withString:@""];
    NSString *newStr2=[newStr stringByReplacingOccurrencesOfString:@"(" withString:@""];
    NSString *newStr3=[newStr2 stringByReplacingOccurrencesOfString:@")" withString:@""];
    return  newStr3;
}
@end
